<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    
    <title>Registration</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <center>
  	<%
  	List<String> info = (List<String>) request.getAttribute("info");
  	if(info.size()!=0){
  		Iterator<String> iter = info.iterator();
  		while(iter.hasNext()){
		 %>
		 <h2><%=iter.next() %></h2>
		 <%			
  		} 
  		%>
		 <h2>Jump in 3 seconds, if nothing happen please click <a href="registration.jsp">here</a>.</h2>
	<%
	response.setHeader("refresh","3;URL=index.jsp?action=reg");
  	}else{
  		%>
		 <h2>Registration successful! Jump in 3 seconds, if nothing happen please click <a href="index.jsp">here</a>.</h2>
	<%
	response.setHeader("refresh","3;URL=index.jsp");
  	}
   %>
   </center>
  </body>
</html>
